]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Factor out function
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 13 Nov 2020 17:34:22 +0000 (14:34 -0300)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 13 Nov 2020 23:29:14 +0000 (23:29 +0000)
The function to update the multiline state of the title label
will be reused by the next commit, so move it into a separate
method.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1496

js/ui/appDisplay.js

index 4bc662ea9a9f6383a855636fdb644a5904fce4a5..9c09a84c97a2811450c445b9ceebbcf54e6d4986 100644 (file)
@@ -1495,7 +1495,7 @@ class AppViewItem extends St.Button {
         }
     }
 
-    _onHover() {
+    _updateMultiline() {
         if (!this.icon.label)
             return;
 
@@ -1524,6 +1524,10 @@ class AppViewItem extends St.Button {
         });
     }
 
+    _onHover() {
+        this._updateMultiline();
+    }
+
     _onDragBegin() {
         this._dragging = true;
         this.scaleAndFade();